package cn.wolfcode.wolf2w.query;

import lombok.Getter;
import lombok.Setter;

@Setter
@Getter
public class TravelQueryObject extends QueryObject {
    private int dayType = -1;
    private int perExpendType = -1;
    private String destId;
    private int state = -1;

    private int orderType = -1;

    // 封装范围参数对象
    public TravelCondition getDay() {
        TravelCondition travelCondition = TravelCondition.DAY_MAP.get(dayType);
        return travelCondition;
    }

    // 封装金钱参数对象
    public TravelCondition getPerExpend() {
        TravelCondition travelCondition = TravelCondition.PER_MAP.get(perExpendType);
        return travelCondition;
    }

    // 封装排序参数对象
    public TravelCondition getOrderType() {
        return TravelCondition.ORDER_TYPE_MAP.get(orderType);
    }
}

